home *** CD-ROM | disk | FTP | other *** search
- rem $linesize:132
- rem $title:'Application Engineer Standard Routines'
- rem $subtitle:'Move to the first key in the index'
- '
- ' bit.left moves the index pointer so that it references the smallest
- ' key in the tree. this function is to be used to get a listing of the
- ' tree in sequence. the 'bit.right' routine will position the pointer
- ' at the other end of the tree for reverse listings.
- '
- ' Include the COMMON values
- rem $include:'AESHARED.BAS'
-
- sub bit.left(fl%,ky$,mrec%,success%) static
-
- rec%=1
- lfagain:
- get #fl%,rec%
- success%=cvi(xk$(fl%,2))
- if success%=0 then
- goto lffin
- end if
- rec%=success%
- goto lfagain
- lffin:
- ky$=xk$(fl%,1)
- success%=rec%
- mrec%=cvi(xk$(fl%,5))
- end sub